#Sample test file showing how to call helper/utility functions
#  from functionsPA.py
import functionsPA as t
from HeaderAnalyzer.models import Sub_Components
from HeaderAnalyzer.models import Page_Profile

# Adding Page Profile data
data2 = 'http://www.gmail.com'
t.addPageProfile(data2)

# Adding Page Sub Components data
data3 = [('transfer-encoding', 'chunked'), ('set-cookie', 'CG=US:MN:Minneapolis; path=/'), ('x-ua-profile', 'iphone'), ('vary', 'Accept-Encoding'), ('server', 'nginx'), ('connection', 'keep-alive'), ('cache-control', 'max-age=60, private'), ('date', 'Sun, 17 Mar 2013 02:16:09 GMT'), ('content-type', 'text/html'), ('content-length', 6260)]
t.addSubComponents(data3)
